.upload-box{
  display: flex;
  flex-wrap: wrap;
  &.block{
    display: block;
    .demo-upload-list{
      display: block;
    }
  }
}

.upload-custom{
  .el-upload{
    .el-upload-dragger{
      width: 150px;
      height: 150px;
      .el-icon-upload{
        margin-top: 0;
      }
      .el-upload__text{
        margin-bottom: 0;
      }
    }
  }
  .upload-custom-box{
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    .img{
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      img{
        display: block;
        max-width: 100%;
        max-height: 100%;
      }
    }
  }
}

.demo-upload-list {
  display: inline-block;
  width: 150px;
  height: 150px;
  line-height: 150px;
  text-align: center;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  position: relative;
  border: 1px solid #dcdee2;
  margin-right: 12px;
  margin-bottom: 12px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.demo-upload-list img {
  display: block;
  width: 100%;
  height: 100%;
}
.demo-upload-list-cover {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
}
.demo-upload-list:hover .demo-upload-list-cover {
  display: block;
}
.demo-upload-list-cover i {
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  margin: 0 4px;
}
.demo-upload-list-cover2 {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
}
.demo-upload-list2:hover .demo-upload-list-cover2 {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-content: center;
}
.demo-upload-list-cover2 i {
  color: #fff;
  cursor: pointer;
  margin: 30% 4px 0;
}
